- what are server actions
- how to use server actions
- how to use validations in server actions
Server actions
- server action must have
use server
doh!
- it must be
async
- if it is server action called on form submit, last argument is
FormData
Passing arguments to server actions
- if I want to pass extra argument, besides
FormData
Returning stuff from server actions